package d7_http;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;

public class Server {
    public static List<Socket> onLineSockets = new ArrayList<>();

    public static void main(String[] args) throws IOException {
        System.out.println("Server started......");
        ServerSocket serverSocket = new ServerSocket(8080);//新建端口
        Socket socket = serverSocket.accept();//接口接受连接

            ServerReaderThread srt = new ServerReaderThread(socket);
            srt.start();
    }
}
